package com.library.search.util;

import com.library.entity.StaffSearch;

import java.util.ArrayList;
import java.util.List;

public class StaffSearchListReturner {

	private List<StaffSearchReturner> staffSearchs = new ArrayList<>();

	public StaffSearchListReturner(List<StaffSearch> staffSearches) {
		if (staffSearches == null) return;
		else {
			StaffSearchReturner staffSearchReturner;
			for(int i = 0;i < staffSearches.size();++i){
				staffSearchReturner = new StaffSearchReturner((staffSearches.get(i)));
				this.staffSearchs.add(staffSearchReturner);
			}
		}
	}

	public List<StaffSearchReturner> getStaffSearchs() {
		return staffSearchs;
	}

	public void setStaffSearchs(List<StaffSearchReturner> staffSearchs) {
		this.staffSearchs = staffSearchs;
	}
}
